Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable authentication client-side if in dev mode #94

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

Protonull
Copy link
Contributor

This takes advantage of the isDevMode method added in #82 to prevent the client from attempting to authenticate with Mojang since a development environment, by its nature, doesn't have an 'online' account, so the attempt will throw, which the protocol has no way to recover from. The server will still need to have the DISABLE_AUTH environment variable set, otherwise the server will forcibly disconnect the client for not being authenticated with Mojang.

@Gjum Gjum merged commit 801badb into CivPlatform:main Oct 17, 2023
1 check passed
@Protonull Protonull deleted the client-disable-auth branch October 17, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants